package com.simplefaith.delisty;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;

import com.simplefaith.delisty.component.NoteView;
import com.simplefaith.delisty.component.NoteViewManager;
import com.simplefaith.delisty.util.ActivityStackControlUtil;

public class BoardActivity extends Activity {

	private NoteViewManager noteViewManager;

	@Override
	protected void onCreate(Bundle savedBundleInstance) {
		super.onCreate(savedBundleInstance);
		ActivityStackControlUtil.add(this);
		// hide title
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);

		// set view
		setContentView(R.layout.activity_board);

		noteViewManager = new NoteViewManager(this);

		NoteView n1 = new NoteView(this, noteViewManager);
		NoteView n2 = new NoteView(this, noteViewManager);
		noteViewManager.AddNoteView(n1);
		noteViewManager.AddNoteView(n2);

	}

	protected void onDestroy() {
		super.onDestroy();
		ActivityStackControlUtil.remove(this);
	}

}
